-
Notifications
You must be signed in to change notification settings - Fork 36
Add feature "22_0" for bitcoin 22.0 #30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
3ea8bc9
to
5321bc4
Compare
5321bc4
to
2bee56d
Compare
src/lib.rs
Outdated
@@ -92,7 +91,6 @@ const LOCAL_IP: Ipv4Addr = Ipv4Addr::new(127, 0, 0, 1); | |||
/// assert_eq!(conf, bitcoind::Conf::default()); | |||
/// ``` | |||
/// | |||
#[non_exhaustive] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to remove this because it prevents external crates (like electrsd
) from being able to create a Conf
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's the entire point :)
users should use let conf = Conf::default()
and then change the relative fields
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah ha! ok I removed this change.
looking in wrong place... https://bitcoincore.org/bin/bitcoin-core-22.0/ |
@@ -19,7 +19,19 @@ fn download_filename() -> String { | |||
} | |||
|
|||
fn get_expected_sha256(filename: &str) -> Result<sha256::Hash, ()> { | |||
let sha256sums_filename = format!("sha256/bitcoin-core-{}-SHA256SUMS.asc", &VERSION); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we use the .asc
version also for 22.0
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I couldn't decide about this, starting with 22.0
two files are created: SHA256SUMS
and SHA256SUMS.asc
. The first file has all the checksums and the second file only has signatures. Two other options I see are:
- for all new releases of
bitcoind
we rename theSHA256SUMS
file toSHA256SUMS.asc
, but usually the.asc
extension means that it's ascii armored which the new release files technically won't be. - we rename all the files in the
sha256
directory, removing the.asc
extension and we should also remove the signatures so the file names won't be misleading and since we don't use the signatures anyway.
Disadvantage of options 1 is some misleading file naming that conflict with actual files released with that name. I'd prefer option 2 since going forward for new releases we can just rename and drop in the unedited SHA256SUMS
file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I didn't know the SHA256SUMS.asc
format changed... Let's keep it as it is in current PR
315c9f1
to
2bee56d
Compare
Leaving this PR as |
just pushed core-rpc 0.15 |
2bee56d
to
34e51f4
Compare
I've got some errors testing locally because the core-rpc Could you please rebase on master so that CI is run and fix the errors? |
34e51f4
to
c60f18c
Compare
Thanks, I should have tested it manually. I've re-based, made the required changes for |
LGTM |
released 0.19.0 |
No description provided.